package easier.app.x.recycler;

import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 空数据adapter
 */
public class EmptyAdapter extends RecyclerView.Adapter< EmptyHolder > {

    private final View view;

    public EmptyAdapter( View empty ) {

        view = empty;
    }

    @NonNull
    @Override
    public EmptyHolder onCreateViewHolder( @NonNull ViewGroup parent, int viewType ) {

        return new EmptyHolder( view );
    }

    @Override
    public void onBindViewHolder( @NonNull EmptyHolder holder, int position ) {

    }

    @Override
    public int getItemCount() {

        return 1;
    }
}